<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="comtemuserCss" jsFile="comtemuserJs" current="公司用户">
  	<div class="page-content">
        <!-- BEGIN PAGE HEAD-->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>用户管理
                    <small>管理用户账号密码</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">公司用户</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
             <div class="col-md-12 col-sm-12 search-form">
                    <form id="companySearchForm" action="" method="post" name="searchForm">
                         <div class="search-item input-group col-md-4 col-sm-4">
                             <span class="input-group-addon">用户名称</span>
                             <input class="form-control" placeholder="用户名称" id="userCode" name="consumer_name"></input>
                         </div>
                         <div class="search-item input-group col-md-4 col-sm-4">
                             <span class="input-group-addon">用户编码</span>
                             <input class="form-control" placeholder="用户编码" id="userCode" name="consumer_code"></input>
                         </div>
                         <div class="search-item input-group col-md-4 col-sm-4">
                             <span class="input-group-addon">所属公司</span>
                         	 <select class="form-control input-inline" name="company_id" >
                              </select>
                         </div>
                         <div class="search-item input-group col-md-4 col-sm-4">
                         	<a href="javascript:;" class="btn sbold green comsearch" name="search" id="search">查询</a>
                            <a href="javascript:;" class="btn btn-default comreset" name="ret" id="reset">清空</a>
                         </div>
                    </form>
              </div>
        </div>
        <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN EXAMPLE TABLE PORTLET-->
                    <div class="portlet light bordered">
                        <div class="portlet-title">
                            <div class="caption">
                                <button id="add_company_new" class="btn sbold green"> 创建用户
                                </button>
                                <button id="import_company" class="btn sbold green"> 批量导入用户
                                </button>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <table class="table table-striped table-bordered table-hover table-checkable order-column" id="company_body">
                                <thead>
                                    <tr>
                                        <th>
                                            <input type="checkbox" class="group-checkable" data-set="#company_body .checkboxes" /> </th>
                                        <th> 用户名称 </th>
                                        <th> 用户编码 </th>
                                        <th> 所属公司 </th>
                                        <th> 用户类别 </th>
                                        <th> 建立日期 </th>
                                        <th> 状态</th>
                                        <th>操作 </th>
                                    	<th>功能 </th>
                                    </tr>
                                </thead>
                                <tbody>
                                    
                                </tbody>
                            </table>
                        </div>
                        <div class="caption">
                            <div id="tips" class="tips"></div>
                        </div>
                        <div class="caption">
                            <button id="use_company" class="btn sbold green"> 启用选中用户
                            </button>
                            <button id="stop_company" class="btn sbold red"> 停用选中用户
                            </button>
                        </div>
                    </div>
                    <!-- END EXAMPLE TABLE PORTLET-->
                </div>
        </div>
        <!-- END PAGE BASE CONTENT -->
    </div>
</@page.mainTemplate>